<?php

require_once('inc.config.php');

$hid = $_GET["id"];
$plaza= $_GET["pp"];
$lx= $_GET["lx"];


if(!isset($hid)||!isset($plaza)){
	header("Location:index.php");
	exit;
}

$useTemplate   = 'compare_rent.html';

$page = new QuickSkin ($useTemplate );

template_ini($page);

$page->assign("indexcls" , "bfont");

$info = $myHouse->getRhouseInfo($hid);
$goldlist = $myAgent->getGoldenList();

$condition = array(
	"plaza" => $plaza,
	"lx"=>$lx,
	"id" => $hid."~"
);
$result = $myHouse->getSearchRentList($condition , 1 , -1);

$page->assign($info);
$page->assign("goldlist" , $goldlist);

$page->assign("rentlist" , $result);

$page->assign("total" , count($result));


$page->output();


ob_end_flush();

?>